package com.hbnu.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hbnu.system.config.PostDeserializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2023-05-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("lecture")
public class Lecture implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键 讲座编号
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "LectureID", type = IdType.ASSIGN_ID)
    private String LectureID;

    /**
     * 统计分类
     */
    @ApiModelProperty(value = "统计分类")
    @TableField("classifi")
    private String classifi;

    /**
     * 学术讲座名称
     */
    @ApiModelProperty(value = "学术讲座名称")
    @TableField("lectureName")
    private String lecturename;

    /**
     * 主办单位
     */
    @ApiModelProperty(value = "主办单位")
    @TableField("hostUnit")
    private String hostunit;

    /**
     * 学术讲座类别
     */
    @ApiModelProperty(value = "学术讲座类别")
    @TableField("lectureCate")
    private String lecturecate;

    /**
     * 负责人
     */
    @ApiModelProperty(value = "负责人")
    @TableField("head")
    private String head;

    /**
     * 主讲人
     */
    @ApiModelProperty(value = "主讲人")
    @TableField("speaker")
    private String speaker;

    /**
     * 主讲人单位
     */
    @ApiModelProperty(value = "主讲人单位")
    @TableField("speakerUnit")
    private String speakerunit;

    /**
     * 主讲人职务
     */
    @ApiModelProperty(value = "主讲人职务")
    @TableField("speakerDuties")
    private String speakerduties;

    /**
     * 主讲人职称
     */
    @ApiModelProperty(value = "主讲人职称")
    @TableField("speakerTitle")
    private String speakertitle;

    /**
     * 学科分类
     */
    @ApiModelProperty(value = "学科分类")
    @TableField("disciplineClassif")
    private String disciplineclassif;

    /**
     * 举办地址所在
     */
    @ApiModelProperty(value = "举办地址所在")
    @TableField("placeCountry")
    private String placecountry;

    /**
     * 举办地址
     */
    @ApiModelProperty(value = "举办地址")
    @TableField("place")
    private String place;

    /**
     * 开始日期
     */
    @ApiModelProperty(value = "开始日期")
    @TableField("startTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 结束日期
     */
    @ApiModelProperty(value = "结束日期")
    @TableField("endTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    /**
     * 参加人数
     */
    @ApiModelProperty(value = "参加人数")
    @TableField("peoples")
    private String peoples;

    /**
     * 校内参加人数
     */
    @ApiModelProperty(value = "校内参加人数")
    @TableField("peoplesinschool")
    private String peoplesinschool;

    /**
     * 所有参加人
     */
    @ApiModelProperty(value = "所有参加人")
    @TableField("allnames")
    private String allnames;

    /**
     * 附件
     */
    @ApiModelProperty(value="附件")
    @JsonDeserialize(using = PostDeserializer.class)
    private byte[] annex;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @TableField("notes")
    private String notes;

    /**
     * 录入人
     */
    @ApiModelProperty(value = "录入人")
    @TableField("entered")
    private String entered;

    /**
     * 录入日期
     */
    @ApiModelProperty(value = "录入日期")
    @TableField("entereddate")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate entereddate;

    /**
     * 审批状态
     */
    @ApiModelProperty(value = "审批状态")
    @TableField("status")
    private String status;
    /**
     * 未通过原因
     */
    @ApiModelProperty(value = "未通过原因")
    @TableField("reason")
    private String reason;
}
